<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增来源任务信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-taskinfo-add">

            <input type="hidden" name="sourceId" id="sourceId" th:value="${sourceId}">
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">来源ID：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="sourceId" class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">推送城市：</label>
                <div class="col-sm-8">
                    <input name="inCityArray" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">基准价格：</label>
                <div class="col-sm-8">
                    <input name="baseAmount" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">价格溢价率：</label>
                <div class="col-sm-8">
                    <input name="amountRate" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">最小年龄：</label>
                <div class="col-sm-8">
                    <input name="minAge" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">最大年龄：</label>
                <div class="col-sm-8">
                    <input name="maxAge" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">芝麻分：</label>
                <div class="col-sm-8">
                    <input name="zhima" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "source/taskinfo"
        $("#form-taskinfo-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-taskinfo-add').serialize());
            }
        }
    </script>
</body>
</html>